<?php
// @formatter:off
/**
 * @file permissions.php
 * @author Alejandro Dario Simi
 * @date $Date: 2013-06-16 19:41:09 +0000 (Sun, 16 Jun 2013) $
 *
 * $Id: permissions.php 72 2013-06-16 19:41:09Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/tags/wcomix-1.0-BETA1/config/permissions.php $
 */
// @formatter:on

/*
 * Pyramid definition
 * @formatter:off
 * @{
 */
$wcPermissions["pyramid"]["ROOT"]	= "ADMIN";
$wcPermissions["pyramid"]["ADMIN"]	= "ORGANIZER";
$wcPermissions["pyramid"]["ORGANIZER"]	= "COLLECTOR";
$wcPermissions["pyramid"]["COLLECTOR"]	= "TAGGER";
$wcPermissions["pyramid"]["TAGGER"]	= "USER";
$wcPermissions["pyramid"]["USER"]	= "ANON";
$wcPermissions["pyramid"]["ANON"]	= "*";
/*
 * @}
 * @formatter:on
 */

foreach($wcPermissions["_names"]["profiles"] as $profile) {
	$wcPermissions["pyramid-perms"][$profile] = array();
	$wcPermissions["direct-perms"][$profile] = array();
}

/*
 * General
 * @formatter:off
 * @{
 */
/*
 * @}
 * @formatter:on
 */

/*
 * Everyone
 * @formatter:off
 * @{
 */

/*
 * @}
 * @formatter:on
 */

/*
 * ANON
 * @formatter:off
 * @{
 */
$wcPermissions["direct-perms"]["ANON"][]	= WC_PERM_USER_REGISTER;
$wcPermissions["direct-perms"]["ANON"][]	= WC_PERM_USER_RESET;
$wcPermissions["direct-perms"]["ANON"][]	= WC_PERM_USER_LOGIN;

$wcPermissions["pyramid-perms"]["ANON"][]	= WC_PERM_SPECIAL_CREDIT;
$wcPermissions["pyramid-perms"]["ANON"][]	= WC_PERM_SPECIAL_LOGO;
$wcPermissions["pyramid-perms"]["ANON"][]	= WC_PERM_SPECIAL_MENU;
$wcPermissions["pyramid-perms"]["ANON"][]	= WC_PERM_SPECIAL_NOTHING;
$wcPermissions["pyramid-perms"]["ANON"][]	= WC_PERM_SPECIAL_RANDOM;
$wcPermissions["pyramid-perms"]["ANON"][]	= WC_PERM_SPECIAL_VERSION;
$wcPermissions["pyramid-perms"]["ANON"][]	= WC_PERM_SPECIAL_SEARCH;
$wcPermissions["pyramid-perms"]["ANON"][]	= WC_PERM_COMIC_LIST;
$wcPermissions["pyramid-perms"]["ANON"][]	= WC_PERM_COMIC_VIEW;
$wcPermissions["pyramid-perms"]["ANON"][]	= WC_PERM_TAG_LIST;
$wcPermissions["pyramid-perms"]["ANON"][]	= WC_PERM_TAG_VIEW;
$wcPermissions["pyramid-perms"]["ANON"][]	= WC_PERM_COLLECTION_LIST;
$wcPermissions["pyramid-perms"]["ANON"][]	= WC_PERM_COLLECTION_VIEW;
$wcPermissions["pyramid-perms"]["ANON"][]	= WC_PERM_GROUP_SWITCH;
/*
 * @}
 * @formatter:on
 */

/*
 * USER
 * @formatter:off
 * @{
 */
$wcPermissions["pyramid-perms"]["USER"][]		= WC_PERM_USER_LOGOUT;

$wcPermissions["pyramid-perms"]["USER"][]		= WC_PERM_COMIC_SET_RATE;
$wcPermissions["pyramid-perms"]["USER"][]		= WC_PERM_COMIC_SET_READ;
$wcPermissions["pyramid-perms"]["USER"][]		= WC_PERM_DIRECTORY_LIST;
$wcPermissions["pyramid-perms"]["USER"][]		= WC_PERM_DIRECTORY_VIEW;
$wcPermissions["pyramid-perms"]["USER"][]		= WC_PERM_USER_SELF_EDIT;
/*
 * @}
 * @formatter:on
 */

/*
 * TAGGER
 * @formatter:off
 * @{
 */
$wcPermissions["pyramid-perms"]["TAGGER"][]	= WC_PERM_COMIC_SET_TAG;
$wcPermissions["pyramid-perms"]["TAGGER"][]	= WC_PERM_TAG_SET_TAG;
$wcPermissions["pyramid-perms"]["TAGGER"][]	= WC_PERM_TAG_ADD;
$wcPermissions["pyramid-perms"]["TAGGER"][]	= WC_PERM_TAG_REMOVE;
$wcPermissions["pyramid-perms"]["TAGGER"][]	= WC_PERM_TAG_RENAME;
$wcPermissions["pyramid-perms"]["TAGGER"][]	= WC_PERM_DIRECTORY_SET_TAG;
/*
 * @}
 * @formatter:on
 */

/*
 * COLLECTOR
 * @formatter:off
 * @{
 */
$wcPermissions["pyramid-perms"]["COLLECTOR"][]	= WC_PERM_COMIC_SET_COLLECTION;
$wcPermissions["pyramid-perms"]["COLLECTOR"][]	= WC_PERM_COLLECTION_ADD;
$wcPermissions["pyramid-perms"]["COLLECTOR"][]	= WC_PERM_COLLECTION_EDIT;
$wcPermissions["pyramid-perms"]["COLLECTOR"][]	= WC_PERM_COLLECTION_RENAME;
$wcPermissions["pyramid-perms"]["COLLECTOR"][]	= WC_PERM_COLLECTION_REMOVE;
$wcPermissions["pyramid-perms"]["COLLECTOR"][]	= WC_PERM_COLLECTION_VIEW;
/*
 * @}
 * @formatter:on
 */

/*
 * ORGANIZER
 * @formatter:off
 * @{
 */
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_COMIC_EDIT;
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_COMIC_RENAME;
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_COMIC_TRASH;
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_DIRECTORY_ADD;
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_DIRECTORY_EDIT;
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_RULE_ADD;
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_RULE_EDIT;
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_RULE_LIST;
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_RULE_REMOVE;
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_RULE_RENAME;
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_ACTION_ADD;
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_ACTION_EDIT;
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_ACTION_REMOVE;
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_ACTION_RENAME;
$wcPermissions["pyramid-perms"]["ORGANIZER"][]	= WC_PERM_USER_EDIT;
/*
 * @}
 * @formatter:on
 */

/*
 * ADMIN
 * @formatter:off
 * @{
 */
$wcPermissions["pyramid-perms"]["ADMIN"][]	= WC_PERM_SPECIAL_STATS;
$wcPermissions["pyramid-perms"]["ADMIN"][]	= WC_PERM_GROUP_EDIT;
$wcPermissions["pyramid-perms"]["ADMIN"][]	= WC_PERM_GROUP_RENAME;
$wcPermissions["pyramid-perms"]["ADMIN"][]	= WC_PERM_DIRECTORY_RENAME;
$wcPermissions["pyramid-perms"]["ADMIN"][]	= WC_PERM_USER_ADD;
$wcPermissions["pyramid-perms"]["ADMIN"][]	= WC_PERM_USER_LIST;
$wcPermissions["pyramid-perms"]["ADMIN"][]	= WC_PERM_USER_ADMIN;
$wcPermissions["pyramid-perms"]["ADMIN"][]	= WC_PERM_STATS_VIEW;
/*
 * @}
 * @formatter:on
 */
?>